<?php 
//=====================================================
/*
 * Created By  : Avik Kundu
 * Created On  : 22/03/2010
 * Version 	   : 1.0
 * Modified By :
 * Modified On :
 *  
 */
//=====================================================


//----------------------------------------------
 /* 
  * Class To GET TWITTER DETAILS
  */ 
 //----------------------------------------------
 class OpenIdsByAPI
 {
 	public function Twitter($screenName)
 	{
 		require('SimpleTwitter.php');
		$twitter = new SimpleTwitter($screenName);
		//$myStatusMessages = $twitter->getMyTimeline(5);	// Fetch 5 of your latest status messages
			//print_r($myStatusMessages);
		//$publicTimeline = $twitter->getPublicTimeline(3); // Fetch 3 latest status messages from the public time line
			//print_r($publicTimeline);
		//$friendsStatus = $twitter->getFriendsStatus();	// Fetch status messages of your friends
			//print_r($friendsStatus);
		$userInformation = $twitter->getUserInformation();	// Fetch information about your account
			return $userInformation;
		//$stargateTwitts = $twitter->findTwitts($screenName);	// Find status messages containing the word "stargate"
			//print_r($stargateTwitts);
 	}
 }